package shop.xiaosa.service;

import org.apache.ibatis.annotations.Param;
import shop.xiaosa.pojo.User;

import java.util.List;

public interface UserService {
    /**
     * 添加
     * @param user
     * @return
     */
    boolean add(User user);

    /**
     * 查询所有
     * @return
     */
    List<User> findAll();

    /**
     * 用户登陆
     * @param phone
     * @param password
     * @return
     */
    User login(@Param(value = "phone") String phone, @Param(value = "password") String password);

}
